<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>查询展示页面</title>
    <link rel="stylesheet" type="text/css" href="../resource/css/displaypage.css"/>
</head>
<body style="background-image: linear-gradient(to right, #e4afcb 0%, #b8cbb8 0%, #b8cbb8 0%, #e2c58b 30%, #c2ce9c 64%, #7edbdc 100%);">
<div style="position: center">
    <div id="library">
    <table align="center" border="1">
        <tr>
            <th style="text-align:center;">学生ID</th>
            <th style="text-align:center;">学生姓名</th>
            <th style="text-align:center;">学生入学日期</th>
            <th style="text-align:center;">学生电话</th>
            <th style="text-align:center;">学生所在的学期</th>
            <th style="text-align:center;">学生状态</th>
            <th style="text-align:center;">操作</th>
        </tr>
        <c:forEach items="${StudentList}" var="student">
            <tr>
                <td name="studentId">${student.studentId}</td>
                <td>${student.name}</td>
                <td alian="center">${student.dateOfEnrollment}</td>
                <td>${student.contactNumber}</td>
                <td align="center">${student.semester}</td>
                <td align="center">${student.studentStatus}</td>
                <td>
                    <a href="/delServlet?studentId=${student.studentId}">删除</a>
                    <a href="/SumServlet?studentId=${student.studentId}">更新</a>
                </td>
            </tr>
        </c:forEach>
    </table>
    </div>
</div>
</body>
</html>

